class Animal:
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def eat(self):
        print('吃')
    def sleep(self):
        print('睡')
class Cat(Animal):
    def catch(self):
        print('抓老鼠')
class Dao(Animal):
    def look_door(self):
        print('看门')
class XiaoTianDog(Dao):
    def fly(self):
        print('这条狗会飞')

xtq=XiaoTianDog(name='哮天犬',age=600)

xtq.fly()
xtq.eat()
xtq.sleep()
xtq.look_door()